gridpack::parallel::GlobalStore< _data_type > Class Template Reference

#include <global_store.hpp>

Collaboration diagram for gridpack::parallel::GlobalStore< _data_type >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GlobalStore (const gridpack::parallel::Communicator &comm)
 ~GlobalStore (void)
void addVector (const int idx, const std::vector< _data_type > &vec)
void upload ()
void getVector (const int idx, std::vector< _data_type > &vec)

template<typename _data_type>
class gridpack::parallel::GlobalStore< _data_type >


Constructor & Destructor Documentation

template<typename _data_type >
gridpack::parallel::GlobalStore< _data_type >::GlobalStore ( const gridpack::parallel::Communicator comm  ) 

Default constructor

Parameters:
comm communicator over which GlobalStore object runs. Data is accessible from any process on the communicator

References gridpack::parallel::Communicator::rank(), and gridpack::parallel::Communicator::size().

template<typename _data_type >
gridpack::parallel::GlobalStore< _data_type >::~GlobalStore ( void   ) 

Default destructor


Member Function Documentation

template<typename _data_type >
void gridpack::parallel::GlobalStore< _data_type >::addVector ( const int  idx,
const std::vector< _data_type > &  vec 
)

Add vector to GlobalStore

Parameters:
vec standard vector containing data
idx index of data in GlobalStore
template<typename _data_type >
void gridpack::parallel::GlobalStore< _data_type >::getVector ( const int  idx,
std::vector< _data_type > &  vec 
)

Get vector corresponding to index idx from GlobalStore

Parameters:
idx index of stored vector
vec vector of returned values
template<typename _data_type >
void gridpack::parallel::GlobalStore< _data_type >::upload (  ) 

Upload data that is held locally into distributed array, so that it is available anywhere in the system

References gridpack::parallel::Communicator::getGroup(), gridpack::parallel::Communicator::max(), and gridpack::parallel::Communicator::sum().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Feb 2020 for GridPACK by  doxygen 1.6.1